//
//  AdvertiseView.h
//  zhibo
//
//  Created by 周焕强 on 16/5/17.
//  Copyright © 2016年 zhq. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SplashAdModel.h"
#define kscreenWidth [UIScreen mainScreen].bounds.size.width
#define kscreenHeight [UIScreen mainScreen].bounds.size.height
#define kUserDefaults [NSUserDefaults standardUserDefaults]

@protocol MobSplashAdManagerDelegate <NSObject>

//========================↓↓↓↓ 代理方法开始 ↓↓↓↓========================

/**
 * 开屏广告加载成功时调用
 *
 */
- (void)splashViewShowSuccess;


/**
 *  开屏广告被点击后调用
 */
- (void)splashViewToClicked;

/**
 *  开屏广告展示结束时调用
 */
- (void)splashViewDismissScreen;

/**
 *  开屏广告详情页消失时调用
 */
- (void)splashViewDidDismissLp;

/**
 *  开屏广告曝光成功时调用
 */
- (void)splashViewToExposure;

//========================↑↑↑↑ 代理方法结束 ↑↑↑↑========================

@end

static NSString *const adImageName = @"adImageName";
static NSString *const adUrl = @"adUrl";
@interface AdvertiseView : UIView
/** 显示广告页面方法*/
- (void)show;

/** 图片路径*/
@property (nonatomic, strong) NSData *filePath;
/** 开屏广告代理 */
@property (nonatomic, weak) id<MobSplashAdManagerDelegate> delegate;
@property(nonatomic,strong)SplashAdModel * model;

@end
